package com.bgamq.atcrowd.service.api;

import com.bgamq.atcrowd.entity.Admin;
import com.github.pagehelper.PageInfo;

import java.util.List;


public interface AdminService {
    void saveAdmin(Admin admin);

    List<Admin> getAll();

    Admin getAdminByLoginAcct(String acct, String pswd);

    PageInfo<Admin> getPageInfo(String keyword,Integer pageNum,Integer pageSize);

    void remove(Integer id);

    Admin getAdminById(Integer id);

    void update(Admin admin);

    void saveAdminRoleRelationship(Integer adminId, List<Integer> roleIdList);

    Admin getAdminByLoginAcct(String username);
}
